package util.chessworld;

import generator.Piece;

public class Domain extends Path {

    public final Avatar Av;
    private final Piece[][] board;

    public Domain() {
        super();
        Av = new Avatar(this);
        board = new Piece[ maxX + 1 ][ maxY + 1 ];
        for (int rank = 1 ; rank <= NSquares ; rank++) {
            for (int file = 1 ; file <= NSquares ; file++) {
                board[file][rank] = new Piece(formT[file][rank], colorT[file][rank]);
            }
        }
    }

    public Piece[][] getBoard() {
        return board;
    }
}
